/**
 * Created by hxpeng on 2017/3/20.
 */
(function () {
    'use strict';

    angular.module('BlurAdmin.pages')
        .factory('userAuth', userAuth);

    /** @ngInject */
    function userAuth() {
        var user;
        return{
            setUser : function(aUser){
                user = aUser;
            },
            isLoggedIn : function(){
                return(user)? user : false;
            }
        }
    }
})();
